package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 试题选项表
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-23
 */
@TableName("d_subject_choose")
public class DSubjectChoose extends Model<DSubjectChoose> {

    private static final long serialVersionUID=1L;

    /**
     *  主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试题ID
     */
    @TableField("subjectId")
    private Integer subjectId;

    /**
     * 选择 例：A B C D等
     */
    private String choose;

    /**
     * 对应内容
     */
    private String text;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public String getChoose() {
        return choose;
    }

    public void setChoose(String choose) {
        this.choose = choose;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DSubjectChoose{" +
        "id=" + id +
        ", subjectId=" + subjectId +
        ", choose=" + choose +
        ", text=" + text +
        ", createTime=" + createTime +
        "}";
    }
}
